package me.send.produce.client.controller;

import java.util.Map;

import me.send.business.service.service.UserredService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "userred", method = RequestMethod.POST)
public class UserredController {

	@Autowired
	private UserredService userredService;

	// 根据用户编号 查看用户有效的红包 2015年6月8日17:14:36
	@RequestMapping(value = "list/userid")
	@ResponseBody
	public Map<String, Object> list_userid(String devicenumber, int userid) {
		return userredService.list_userid(devicenumber, userid);
	}

}
